#pragma once

#include <QObject>
#include <qtcpsocket.h>
#include <qhostaddress.h>

class ClientHandler  : public QObject
{
	Q_OBJECT
public:
	ClientHandler(qintptr socketDescriptor, QObject *parent = nullptr);
	~ClientHandler();
signals:
	void setMsg(QString strMsg, QString strIp, QString strPort);
public slots:
	void working();
private slots:
	void receiveInfo();
private:
	qintptr socketDescriptor;
	QTcpSocket *socket;
};
